//
//  ClockModel.swift
//  SKClock
//
//  Created by Sky-work on 2021/12/22.
//

import Foundation


public enum ClockType {
    /// 闹钟
    case alarm
    /// 倒计时
    case countDown
}

public enum ElementType {
    /// 正常默认
    case normal
    /// 休息
    case rest
}



// MARK: -  model

@objcMembers
public class ClockItemModel {
    var ID: String!
    var title: String!
    var desc: String!
    
    /// value 以s秒为单位
    var time: TimeInterval = 0
    var music: String!
    var type: ElementType = .normal
    
    var isActive: Bool = false
}


@objcMembers
public class ClockModel {
    
    var ID: String!
    var title: String!
    var items: [ClockItemModel]!
    
    var type: ClockType = .countDown
    var isActive: Bool = false
    
}



